import request from '@/utils/request'

export default {
  getAllStudent(searchModel){  //获取列表中学生信息 以及搜索学生信息
    return request({
      url: `/system/jiaowu/allxueke/${searchModel.pageNo}/${searchModel.pageSize}`,
      method: 'get',
      params:{
        category: searchModel.wn,
        judgment: searchModel.ks,
      }
    });

  },

//   getByclass(searchModel){
//     return request({
//       url: `/system/student/getByClass/${searchModel.pageNo}/${searchModel.pageSize}`,
//       method: 'get',

//     })
//   },
  addStudent(student){  //添加学生用户
    return request({
      url: "/system/jiaowu/addOrUpdateXueke",
      method: 'post',
      data: student
    });
  },
  getById(id){    // 通过学生id 进行回显
    return request({
      url: `/system/jiaowu/xueke/${id}`,
      method: 'get',
    });
  },
  deleteById(id){  // 通过id 删除学生信息
    return request({
      url: `/system/jiaowu/delete/${id}`,
      method: 'delete',
      // data: student
    });
  },  



}